package dao;

import excepciones.DaoException;
import modelo.AuditoriaLog;
import modelo.Model;

public class AuditoriaLogDao extends AbstractDao {
	
	
	/**
	* Class Constructor [Empty]
	*/
	public AuditoriaLogDao()
	{
	   super();
	}
	
	/**
    * Class Constructor
    * @param model   The Usuario model to manage persistence for
    */
    public AuditoriaLogDao(AuditoriaLog AuditoriaLogModel)
    {
      super(AuditoriaLogModel);      
      this.model = (AuditoriaLog) model;
    }

	@Override
	public Model findById(Long id) throws DaoException {
		// TODO Auto-generated method stub
		try
	      {
	         model = (AuditoriaLog) super.findById(AuditoriaLog.class, id);
	      }
	      catch(Exception e)
	      {
	         e.printStackTrace();
	      }
	      
	      
	      return (AuditoriaLog) model;
	}

	@Override
	public Model getModel() {
		// TODO Auto-generated method stub
		return (AuditoriaLog) model;
	}

}
